package com.hotel_management_backstage.lin.dao;

import com.hotel_management_backstage.lin.entity.SysUser;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface SysUserMapper {
//    @Select("SELECT * FROM sys_user WHERE id = #{id}")
    SysUser selectById(Integer id);

//    @Select("SELECT * FROM sys_user WHERE name = #{name}")
    SysUser selectByName(String name);

//    void insertUser(@Param("name") String name,@Param("password") String password);

    void insertUser(SysUser sysUser);

    void updateUser(SysUser sysUser);

    void deleteUserById(int id);
}
